/**
 * Created with Intellij JDEA
 * Description:
 * User:
 * Date:2022-04-03
 * Time:17:02
 */
public class 寻找比目标字母大的最小字母 {
    public char nextGreatestLetter(char[] letters, char target) {
        char ch = letters[0];
        for (char x : letters) {
            if (x > target) {
                ch = x;
                break;
            }
        }
        return ch;
    }
}
